<html>
    <head>
        <script type="text/javascript" src="../javascript/UTSDK.js"></script>
        <style>
            input{
                width: 30em;
            }
        </style>
    </head>
    <body>
        <table>
            <tr>
                <td>Salt</td>
                <td><input type="text"/></td>
            </tr>
            <tr>
                <td>password</td>
                <td><input type="text"/></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="button" onclick="md5()" value="md5"/></td>
            </tr>
            <tr>
                <td>output</td>
                <td><input type="text"/></td>
            </tr>
        </table>
        <script>
            function md5() {
                var inputs = document.getElementsByTagName("input");
                var salt = inputs[0];
                var password = inputs[1];
                var output = inputs[3];
                var json = {"password": password.value + salt.value};
                var out = ajax.get("md5.php", json, function(responce) {
                    output.value = responce;
                });
            }
        </script>
    </body>
</html>
